package com.study.spark.scala.chapter02

import java.io.{File, PrintWriter}
import java.net.Socket


object Scala06_Master {

  def main(args: Array[String]): Unit = {
    // TODO 客户端
    val client = new Socket("localhost",9999)

    val out = client.getOutputStream
    out.write(300)
    out.flush()
    out.close()

    println("向服务器发送数据")
    client.close()

  }
}
